package blue.mqtt4j.core.lexer;

/**
 * @author Jin Zheng
 * @since 1.0 2020-10-20
 */
public class SimpleToken implements Token
{
	private TokenType type;
	private String text;

	public SimpleToken(TokenType type, String text)
	{
		this.type = type;
		this.text = text;
	}

	@Override
	public TokenType getType()
	{
		return type;
	}

	@Override
	public String getText()
	{
		return text;
	}
}
